<?php include("header.html") ?>
	<div class="num_content">
		<div class="s_m">
			<?php if($type == 'index'){
				 echo '<div class="code_div fl">您的随机数种子为:<span> '.$code .' </span> 请务必妥善保留，以便后续查询</div>';
				}if($type == 'query'){
					echo '<div class="code_div fl">根据随机数种子:<span> '.$code .' </span> 查询到的随机数如下</div>';
				}
				 ?>
				
			
			<div class="get_excel fr"><span><a href="<?php echo config_item("base_url")."rand/getExcelWithCode?code=$code" ?>">下载excel文件</a></span></div>
			<div class="clear"></div>
		</div>
		<div class="header">
			<table cellspacing="0" cellpadding="0">
				<thead>
					<tr>
						<th style="">行/列</th>
						<th style="">#1</th>
						<th style="">#2</th>
						<th style="">#3</th>
						<th style="">#4</th>
						<th style="">#5</th>
						<th style="">#6</th>
						<th style="">#7</th>
						<th style="">#8</th>
						<th style="">#9</th>
						<th style="">#10</th>
					</tr>
				</thead>
				<tbody>
					
					<?php

						$num = 1;
						foreach ($number as $key => $value) {
							$rem = $num%10;
							if($rem == 1){

								if($num>10){
									echo "<tr><td>".($num)."~".($num+9)."</td>";
								}else{
									echo "<tr><td>".(1)."~".(10)."</td>";
								}
								
							}
							if($rem == 0){
								echo "<td>".$value."</td></tr>";
							}else{
								echo "<td>".$value."</td>";
							}

							$num ++;
						}
					 ?>
				</tbody>
			</table>
		</div>
		
	</div>
	<?php include("footer.html") ?>

	<script type="text/javascript">
		$(document).ready(function(){
			$('table tbody tr:odd').css("background-color",'#f1f1f1');
		})
	</script>
	<style type="text/css">
		table tbody tr:hover{ background-color: #CDF5E2!important}
	</style>
	
</body>